package com.tongl.autoreply;

import android.app.TabActivity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TabHost;
import android.widget.TabHost.TabSpec;

public class MainActivity extends TabActivity {
	private TabHost tabHost;
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        tabHost = getTabHost();
        TabSpec tab1 = tabHost.newTabSpec("tab_msg")
        				.setIndicator(getResources().getString(R.string.tab_msg))
        				.setContent(new Intent(this,MsgActivity.class));
        TabSpec tab2 = tabHost.newTabSpec("tab_call")
        				.setIndicator(getResources().getString(R.string.tab_call))
        				.setContent(new Intent(this,CallActivity.class));
        tabHost.addTab(tab1);
        tabHost.addTab(tab2);
    }
}